<template>
  <view class="container">
    <!-- 本季度工单 -->
    <view class="stats-card">
      <view class="card-header">
        <text class="title">本季度工单 (2024四季度)</text>
      </view>
      <view class="stats-content">
        <view class="stats-row">
          <view class="stats-item">
            <text class="stats-label">待完成</text>
            <view class="stats-value-wrap">
              <view class="icon-wrap green">
                <image src="/static/icons/doc-edit.png" class="icon"></image>
              </view>
              <text class="stats-value">15</text>
            </view>
          </view>
          <view class="stats-divider"></view>
          <view class="stats-item">
            <text class="stats-label">已完成</text>
            <view class="stats-value-wrap">
              <view class="icon-wrap blue">
                <image src="/static/icons/doc.png" class="icon"></image>
              </view>
              <text class="stats-value">175</text>
            </view>
          </view>
        </view>
      </view>
    </view>

    <!-- 本年度工单 -->
    <view class="stats-card">
      <view class="card-header">
        <text class="title">本年度工单 (2024年)</text>
      </view>
      <view class="stats-content">
        <view class="stats-row">
          <view class="stats-item">
            <text class="stats-label">待完成</text>
            <view class="stats-value-wrap">
              <view class="icon-wrap green">
                <image src="/static/icons/doc-edit.png" class="icon"></image>
              </view>
              <text class="stats-value">15</text>
            </view>
          </view>
          <view class="stats-divider"></view>
          <view class="stats-item">
            <text class="stats-label">已完成</text>
            <view class="stats-value-wrap">
              <view class="icon-wrap blue">
                <image src="/static/icons/doc.png" class="icon"></image>
              </view>
              <text class="stats-value">870</text>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<style>
.container {
  padding: 20rpx;
  background: #F5F5F5;
  min-height: 100vh;
}

.stats-card {
  background: #FFFFFF;
  border-radius: 12rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
}

.card-header {
  margin-bottom: 24rpx;
}

.title {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

.stats-content {
  padding: 0 20rpx;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-label {
  font-size: 26rpx;
  color: #666;
  margin-bottom: 20rpx;
}

.stats-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12rpx;
}

.icon-wrap {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap.green {
  background-color: #E6F7E6;
}

.icon-wrap.blue {
  background-color: #E8F4FF;
}

.icon {
  width: 32rpx;
  height: 32rpx;
}

.stats-value {
  font-size: 36rpx;
  color: #333;
  font-weight: 500;
}

.stats-divider {
  width: 1px;
  height: 80rpx;
  background-color: #EEEEEE;
  margin: 0 40rpx;
}
</style>
